// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity;

import android.view.*;
import com.nnee.p_pr.p_atom.cls_u;
import java.util.LinkedList;

// Referenced classes of package com.nnee.p_pr.p_activity:
//            MainGridActivity, bt, bu, bp, 
//            bq, br, bs, az

class cls_o
    implements android.view.View.OnCreateContextMenuListener
{

	cls_o(cls_MainGridActivity parammaingridactivity)
    {
		super();
        a = parammaingridactivity;
        
    }

    public void onCreateContextMenu(ContextMenu contextmenu, View view, android.view.ContextMenu.ContextMenuInfo contextmenuinfo)
    {
        int i = ((android.widget.AdapterView.AdapterContextMenuInfo)contextmenuinfo).position;
        cls_u u1 = (cls_u)cls_MainGridActivity.c(a).get(i);
        if(u1 != null)
            contextmenu.setHeaderTitle(u1.U());
        if(u1.V().equals("-1"))
        {
            contextmenu.setHeaderTitle(0x7f0a004c);
            contextmenu.add(0, 256, 0, 0x7f0a0054).setOnMenuItemClickListener(new cls_bt(this, u1, i, view));
        } else
        {
            contextmenu.add(0, 256, 0, 0x7f0a0054).setOnMenuItemClickListener(new cls_bu(this, u1, i, view));
            contextmenu.add(0, 257, 0, 0x7f0a0055).setOnMenuItemClickListener(new cls_bp(this, u1, i, view));
            if(!u1.S())
                contextmenu.add(0, 258, 0, 0x7f0a0056).setOnMenuItemClickListener(new cls_bq(this, u1, i, view));
            contextmenu.add(0, 259, 0, 0x7f0a0057).setOnMenuItemClickListener(new cls_br(this, u1, i, view));
            if(u1.t())
                contextmenu.add(0, 260, 0, 0x7f0a0215).setOnMenuItemClickListener(new cls_bs(this, u1, i, view));
            else
                contextmenu.add(0, 261, 0, 0x7f0a0214).setOnMenuItemClickListener(new cls_az(this, u1, i, view));
        }
    }

    final cls_MainGridActivity a;
}
